package com.mairuide.bill.information;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mairuide._frame.base.BaseModel;

/**
 * 人员基础信息表
 * @author mh
 *
 */
@Entity
@Table(name="TB_PERSON_INFORMATION")
public class PersonInformation extends BaseModel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 人员id
	 */
	@Id
	@Column(name="P_ID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "person_information")
	@SequenceGenerator(name = "person_information", sequenceName = "SEQ_PERSON_INFORMATION",allocationSize=1)
	private Integer pId;
	
	/**
	 * 人员姓名
	 */
	@Column(name="PERSON_NAME")
	private String personName;
	
	/**
	 * 证件类型
	 */
	@Column(name="ID_TYPE")
	private String idType;
	
	/**
	 * 证件号码
	 */
	@Column(name="ID_NUMBER")
	private String idNumber;
	
	/**
	 * 手机号码
	 */
	@Column(name="PHONE_NUMBER")
	private String phoneNumber;
	
	/**
	 * 对象标志(0:人)(1:公司)
	 */
	@Column(name="CUSTOMER_TAG")
	private Integer customerTag;
	
	/**
	 * 性别
	 */
	@Column(name="GENDER")
	private String gender;
	
	/**
	 * 出生日期
	 */
	@Column(name="BIRTH_DATE")
	private Timestamp birthDate;
	
	/**
	 * 民族
	 */
	@Column(name="NATIONAL")
	private String national;
	
	/**
	 * 出生地
	 */
	@Column(name="BIRTH_PLACE")
	private String birthPlace;
	
	/**
	 * 国籍
	 */
	@Column(name="NATIONALITY")
	private String nationality;
	
	/**
	 * 婚姻状况
	 */
	@Column(name="MARITAL_STATUS")
	private String maritalStatus;
	
	/**
	 * 数据来源
	 */
	@Column(name="DATA_SOURCE")
	private String dataSource;
	
	/**
	 * 人员类型
	 */
	@Column(name="BODY_TYPE")
	private String bodyType;
	
	/**
	 * 案件id
	 */
	@Column(name="CASEMANAGER_ID")
	private String casemanagerId;
	
	/**
	 * 描述
	 */
	@Column(name="REMARK")
	private String remark;
	
	@Transient
	private String strDate;

	public Integer getPId() {
		return pId;
	}

	public void setPId(Integer pId) {
		this.pId = pId;
	}

	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	public String getIdType() {
		return idType;
	}

	public void setIdType(String idType) {
		this.idType = idType;
	}

	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public Integer getCustomerTag() {
		return customerTag;
	}

	public void setCustomerTag(Integer customerTag) {
		this.customerTag = customerTag;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Timestamp getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Timestamp birthDate) {
		this.birthDate = birthDate;
	}

	public String getNational() {
		return national;
	}

	public void setNational(String national) {
		this.national = national;
	}

	public String getBirthPlace() {
		return birthPlace;
	}

	public void setBirthPlace(String birthPlace) {
		this.birthPlace = birthPlace;
	}

	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public String getMaritalStatus() {
		return maritalStatus;
	}

	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public String getBodyType() {
		return bodyType;
	}

	public void setBodyType(String bodyType) {
		this.bodyType = bodyType;
	}

	public String getCasemanagerId() {
		return casemanagerId;
	}

	public void setCasemanagerId(String casemanagerId) {
		this.casemanagerId = casemanagerId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStrDate() {
		return strDate;
	}

	public void setStrDate(String strDate) {
		this.strDate = strDate;
	}
	
}
